package com.linchuan.concurrency;

import java.util.concurrent.DelayQueue;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;

class MyDelayTask implements Delayed {

  @Override
  public long getDelay(TimeUnit unit) {
    return 0;
  }

  @Override
  public int compareTo(Delayed o) {
    return 0;
  }
}

public class DelayQueueDemo {

  public static void main(String[] args) {
    DelayQueue<MyDelayTask> queue = new DelayQueue<>();
  }
}
